// pages/salesmans/salesmanCard/salesmanCard.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    navList: [
      {
        title: '充值记录',
        showIndex: false,
        inner: [
          { navName: '充值记录', url: '../rechargeRecord/rechargeRecord' },
        ],
      },
      {
        title: '普通水卡管理',
        showIndex: false,
        inner: [
          { navName: '电子卡', url: '../fictitiousCard/fictitiousCard' },
          { navName: '实体卡', url: '../promotersApplyList/promotersApplyList' }
        ]
      }
    ],    
  },


  // 展开折叠选择  
  panel: function (e) {
    var that = this;
    var i = e.currentTarget.dataset.index
    var nv = that.data.navList;
    if (nv[i].showIndex == false) {
      nv[i].showIndex = true
    } else {
      nv[i].showIndex = false
    }
    that.setData({
      navList: nv
    })
  }
})